package com.lmf.annotation.config;

import com.lmf.annotation.bean.MyApplicationEvent;
import com.lmf.annotation.bean.MyApplicationListener;
import com.lmf.annotation.bean.MyApplicationListener_2;
import com.lmf.annotation.bean.User_2;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;


@Configuration
@ComponentScan(value = "com.lmf.annotation.bean",useDefaultFilters = false,includeFilters = {
        //只包含监听器的类，监听器事件类不需要导入容器
        @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE,classes = {
                MyApplicationListener.class, User_2.class,MyApplicationListener_2.class})
})
public class MyConfigOfApplicationListener {
}
